/* ********************************
 * 
 * author:  sunsc
 * date:    06/25/2013
 * update:  06/26/2013
 * file: 		riskConst.h 
 * brief: 	Copyright (c) 2013 Sand
 * 
 ********************************/
 #ifndef __H_RISK_CONST_
 #define __H_RISK_CONST_
 
 #define RISK_OK								0
 #define RISK_FAIL							-1
 
 #define TEST_FLAG							1
 
 #define FILENAMELEN						256
 #define LESS_BUFFER_LEN				32
 #define MAX_BUFFER_LEN					1024
 #define RECV_LEN								1024*1024*4
 
 #define HEAD_DATA_LEN					4
 
 #define LOG_CFG								"../etc/spMoniLog.cfg"
 #define FILE_ETC								"../etc/spAppConfig.cfg"
 #define PIDPATH								"risk_only_run"
 #define DATA_FILE							"../monRes/risk.db"
 
 #define TASK_CONTINUE					'c'
 #define TASK_END								'e'
 #define PID_BUSY								'b'   
 #define PID_NOPE								'n'
 
 #define ACK_DATA								"ok"
 
 
 #define TRANS_OK								"300000"
 
 #define CHARGE_CODE						"0005000100000004"
 #define DEDUCT_CODE						"0005000500000001"
 
 #define CHAGE_AMT							"chargeAmt"
 #define DEDUCT_AMT							"deductAmt"
 #define PROC_TIME							"processTime"
 #define GAP_TIME								"gapTime"
  
 #endif
 
